<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>2-5 属性选择器之二</title>
    <style>
        [src^=imag] {
            height: 200px;
        }

        [src$=png] {
            background-color: yellow;
        }

        [title*=my-test] {
            border: 2px solid blue;
        }

        [title|="my"] {
            transform: rotate(10deg);
        }
    </style>
</head>
<body>
<img src="images/male.png" title="male my-test" alt="male"/>
<img src="images/female.png" title="my-test female" alt="female"/>
</body>
</html>
